package com.lxc.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lxc.entity.Authors;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface AuthorService extends IService<Authors> {
    Authors getAuthorDetail(Integer id);

    List<Authors> getAllAuthors(Integer pageNum, Integer pageSize);

    boolean saveAuthor(Authors author, MultipartFile file) throws IOException;
}